import 'package:flutter/material.dart';
import 'package:android_base/Navigator_utils.dart';
import 'package:android_base/routes.dart';
import 'package:tdesign_flutter/tdesign_flutter.dart';

// import 'package:libserialport/libserialport.dart';

class HomePage extends StatefulWidget {
  const HomePage({super.key});

  @override
  State<HomePage> createState() => _HomePageState();
}

class _HomePageState extends State<HomePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(toolbarHeight: 0),
      body: SizedBox(
        height: double.infinity,
        child: Row(
          mainAxisAlignment: MainAxisAlignment.center,
          crossAxisAlignment: CrossAxisAlignment.center,

          children: [
            Card(
              child: InkWell(
                onTap: () => {NavigatorUtils.push(Routes.online)},
                child: Padding(
                  padding: EdgeInsets.all(20),
                  child: Text("产品上线", style: TextStyle(fontSize: 30)),
                ),
              ),
            ),
          ],
        ),
      ),
    );
  }
}
